Skip to content

K8SPG-1080 v3 module - #1686

Merged
gkech merged 55 commits into
mainfrom
K8SPG-1080-v3-module
Aug 27, 2026
Merged

K8SPG-1080 v3 module#1686
gkech merged 55 commits into
mainfrom
K8SPG-1080-v3-module

Conversation

@oksana-grishchenko

@oksana-grishchenko oksana-grishchenko commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

v3 module

Problem:
K8SPG-1080
PG 3.0.0 is released while go module still references v2 which makes it harder to use it.

Solution:
Implement v3 module

CHECKLIST

Jira

  • Is the Jira ticket created and referenced properly?
  • Does the Jira ticket have the proper statuses for documentation (Needs Doc) and QA (Needs QA)?
  • Does the Jira ticket link to the proper milestone (Fix Version field)?

Tests

  • Is an E2E test/test case added for the new feature/change?
  • Are unit tests added where appropriate?

Config/Logging/Testability

  • Are all needed new/changed options added to default YAML files?
  • Are all needed new/changed options added to the Helm Chart?
  • Did we add proper logging messages for operator actions?
  • Did we ensure compatibility with the previous version or cluster upgrade process?
  • Does the change support oldest and newest supported PG version?
  • Does the change support oldest and newest supported Kubernetes version?

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot wasn't able to review this pull request because it exceeds the maximum number of files (300). Try reducing the number of changed files and requesting a review from Copilot again.

Comment thread internal/bridge/crunchybridgecluster/postgres_test.go
Comment thread internal/controller/postgrescluster/helpers_test.go
Comment thread internal/controller/postgrescluster/pgmonitor_test.go
Comment thread internal/controller/postgrescluster/snapshots.go
Comment thread internal/controller/postgrescluster/snapshots.go
Comment thread internal/controller/standalone_pgadmin/configmap.go
Comment thread internal/controller/standalone_pgadmin/statefulset.go
Comment thread internal/controller/standalone_pgadmin/volume.go
Comment thread percona/controller/pgrestore/snapshot/reconcile_test.go
Comment thread internal/controller/standalone_pgadmin/configmap.go
Comment thread internal/controller/standalone_pgadmin/service.go
egegunes
egegunes previously approved these changes Jul 27, 2026
# Conflicts:
#	internal/controller/postgrescluster/instance_test.go
#	internal/controller/postgrescluster/pki.go
@oksana-grishchenko

Copy link
Copy Markdown
Contributor Author

As discussed on the DS, making the PR draft so we could go back to it once we merged everything for the release.

@oksana-grishchenko
oksana-grishchenko marked this pull request as draft July 27, 2026 12:01
@oksana-grishchenko oksana-grishchenko added this to the v3.1.0 milestone Jul 27, 2026
# Conflicts:
#	.github/workflows/reviewdog.yml
#	cmd/postgres-operator/main.go
#	internal/controller/pgupgrade/labels.go
#	internal/controller/pgupgrade/pgupgrade_controller.go
#	internal/controller/postgrescluster/cluster.go
#	internal/controller/postgrescluster/controller.go
#	internal/controller/postgrescluster/instance.go
#	internal/controller/postgrescluster/patroni.go
#	internal/controller/postgrescluster/pgadmin.go
#	internal/controller/postgrescluster/pgbackrest.go
#	internal/controller/postgrescluster/pgbackrest_test.go
#	internal/controller/postgrescluster/pgbouncer.go
#	internal/controller/postgrescluster/pgbouncer_test.go
#	internal/controller/postgrescluster/pki.go
#	internal/controller/postgrescluster/pki_test.go
#	internal/controller/postgrescluster/postgres.go
#	internal/patroni/config.go
#	internal/pgbackrest/config_test.go
#	internal/pgbouncer/config.go
#	internal/pgbouncer/reconcile.go
#	internal/pgbouncer/reconcile_test.go
#	internal/postgres/config.go
#	internal/postgres/config_test.go
#	percona/controller/pgbackup/controller.go
#	percona/controller/pgbackup/controller_test.go
#	percona/controller/pgcluster/controller.go
#	percona/controller/pgcluster/controller_test.go
#	percona/controller/pgcluster/owner_ref_migration.go
#	percona/controller/pgcluster/standby.go
#	percona/controller/pgcluster/standby_test.go
#	percona/naming/label.go
#	percona/watcher/wal.go
#	percona/watcher/wal_test.go
Comment thread percona/controller/pgcluster/owner_ref_migration.go
# Conflicts:
#	internal/controller/postgrescluster/pki_test.go
#	internal/controller/postgrescluster/postgres.go
#	internal/controller/postgrescluster/suite_test.go
#	percona/controller/utils.go
@oksana-grishchenko
oksana-grishchenko marked this pull request as ready for review August 25, 2026 11:44
@JNKPercona

Copy link
Copy Markdown
Collaborator
Test Name Result Time
backup-enable-disable passed 00:00:00
builtin-extensions passed 00:00:00
custom-extensions passed 00:00:00
cert-manager-tls passed 00:00:00
cert-management-policy passed 00:00:00
custom-envs passed 00:00:00
custom-tls passed 00:00:00
database-init-sql passed 00:00:00
demand-backup passed 00:00:00
demand-backup-offline-snapshot passed 00:00:00
dynamic-configuration passed 00:00:00
extra-volumes passed 00:00:00
finalizers passed 00:00:00
init-deploy passed 00:00:00
huge-pages passed 00:00:00
logical-replica passed 00:00:00
major-upgrade-14-to-15 passed 00:00:00
major-upgrade-15-to-16 passed 00:00:00
major-upgrade-16-to-17 passed 00:00:00
major-upgrade-17-to-18 passed 00:00:00
major-upgrade-18-to-19 passed 00:00:00
ldap passed 00:00:00
ldap-tls passed 00:00:00
logcollection passed 00:00:00
monitoring passed 00:00:00
operator-upgrade-cert-manager passed 00:00:00
operator-upgrade-extensions passed 00:00:00
one-pod passed 00:00:00
repo-host-autogrow passed 00:00:00
operator-self-healing passed 00:00:00
pgbouncer passed 00:00:00
pg-tde passed 00:00:00
pg-tde-wal-encrypt passed 00:20:12
pitr passed 00:00:00
scaling passed 00:00:00
scheduled-backup passed 00:00:00
self-healing passed 00:00:00
sidecars passed 00:00:00
standby-pgbackrest passed 00:00:00
standby-streaming passed 00:00:00
start-from-backup passed 00:00:00
start-from-volumes passed 00:00:00
tablespaces passed 00:00:00
telemetry-transfer passed 00:00:00
upgrade-consistency passed 00:00:00
upgrade-minor passed 00:00:00
users passed 00:00:00
migration-from-crunchy-standby passed 00:00:00
migration-from-crunchy-pv passed 00:00:00
migration-from-crunchy-backup-restore passed 00:00:00
Summary Value
Tests Run 50/50
Job Duration 00:36:34
Total Test Time 00:20:12

commit: 8eea1d8
image: perconalab/percona-postgresql-operator:PR-1686-8eea1d8c1

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 286 out of 286 changed files in this pull request and generated 1 comment.

Comment on lines 87 to 89
if cr.Spec.Secrets.CustomRootCATLSSecret == nil {
secretsMeta = append(secretsMeta, metav1.ObjectMeta{Namespace: crunchyCluster.Namespace, Name: naming.RootCertSecret})
secretsMeta = append(secretsMeta, naming.PostgresRootCASecret(crunchyCluster))
}
@gkech
gkech merged commit 4032f29 into main Aug 27, 2026
19 checks passed
@gkech
gkech deleted the K8SPG-1080-v3-module branch August 27, 2026 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants